<?php
/**
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('JPATH_BASE') or die;

JFormHelper::loadFieldClass('list');

/**
 * Bannerclient Field class for the Joomla Framework.
 *
 * @package		Joomla.Administrator
 * @subpackage	com_diem_thi
 * @since		1.6
 */
class JFormFieldThiTuyen extends JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var		string
	 * @since	1.6
	 */
	protected $type = 'ThiTuyen';

	/**
	 * Method to get the field options.
	 *
	 * @return	array	The field option objects.
	 * @since	1.6
	 */
	public function getOptions()
	{
		$arrOptions = array(
								''					=> '- Lựa chọn kỳ thi -',
								'hs_gioi' 			=> 'Học sinh giỏi',
								'thi_tot_nghiep' 	=> 'Thi tốt nghiệp',
								'thi_lam_son' 		=> 'Thi Lam Sơn',
								'tuyen_sinh' 		=> 'Tuyển Sinh'
						);
		
		$options = array();
		
		foreach ($arrOptions as $key => $option)
		{
			$obj = new stdClass();
			
			$obj->value = $key;
			$obj->text	= $option;
			
			$options[] = $obj;
		}
		
		return $options;
	}
}
